package com.book.dacnhantam.data;

public class Chapter
{
  private static final String HOI = "Hồi";
  private int id;
  private boolean isChapter;
  private int resource;
  private String title;

  public Chapter(int paramInt1, String paramString, int paramInt2, boolean paramBoolean)
  {
    this.id = paramInt1;
    this.title = paramString;
    this.resource = paramInt2;
    this.isChapter = paramBoolean;
  }

  private int getChapter()
  {
    int i;
    if ((this.id >= 1) && (this.id <= 4))
      i = this.id;
    while (true)
    {
      return i;
      if ((this.id >= 5) && (this.id <= 10))
      {
        i = -4 + this.id;
        continue;
      }
      if ((this.id >= 11) && (this.id <= 22))
      {
        i = -10 + this.id;
        continue;
      }
      if ((this.id >= 23) && (this.id <= 31))
      {
        i = -22 + this.id;
        continue;
      }
      if ((this.id >= 32) && (this.id <= 32))
      {
        i = -31 + this.id;
        continue;
      }
      if ((this.id >= 33) && (this.id <= 39))
      {
        i = -32 + this.id;
        continue;
      }
      i = 0;
    }
  }

  private String getPart()
  {
    String str;
    if ((this.id >= 1) && (this.id <= 4))
      str = "Phần I.";
    while (true)
    {
      return str;
      if ((this.id >= 5) && (this.id <= 10))
      {
        str = "Phần II.";
        continue;
      }
      if ((this.id >= 11) && (this.id <= 22))
      {
        str = "Phần III.";
        continue;
      }
      if ((this.id >= 23) && (this.id <= 31))
      {
        str = "Phần IV.";
        continue;
      }
      if ((this.id >= 32) && (this.id <= 32))
      {
        str = "Phần V.";
        continue;
      }
      if ((this.id >= 33) && (this.id <= 39))
      {
        str = "Phần V.";
        continue;
      }
      str = null;
    }
  }

  public String getChapterTextNumber()
  {
    return getPart() + " " + "Chương " + getChapter();
  }

  public int getId()
  {
    return this.id;
  }

  public int getResource()
  {
    return this.resource;
  }

  public String getTitle()
  {
    return this.title;
  }

  public String getWindowTitle()
  {
    if (!this.isChapter);
    for (String str = this.title; ; str = "Chương " + getChapter() + " " + this.title)
      return str;
  }

  public boolean isChapter()
  {
    return this.isChapter;
  }

  public void setId(int paramInt)
  {
    this.id = paramInt;
  }

  public void setResource(int paramInt)
  {
    this.resource = paramInt;
  }

  public void setTitle(String paramString)
  {
    this.title = paramString;
  }
}

/* Location:           C:\Users\chutieucodon\Desktop\dec\com.book.dacnhantam-36fb9c182ef79376b618c867d3d1c347\classes_dex2jar.jar
 * Qualified Name:     com.book.dacnhantam.data.Chapter
 * JD-Core Version:    0.6.0
 */